package com.yiruantong.common.web.config.properties;

import lombok.Data;
import com.yiruantong.common.web.enums.CaptchaCategory;
import com.yiruantong.common.web.enums.CaptchaType;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 验证码 配置属性
 *
 * @author YiRuanTong
 */
@Data
@ConfigurationProperties(prefix = "captcha")
public class CaptchaProperties {

  private Boolean enable;

  /**
   * 验证码类型
   */
  private CaptchaType type;

  /**
   * 验证码类别
   */
  private CaptchaCategory category;

  /**
   * 数字验证码位数
   */
  private Integer numberLength;

  /**
   * 字符验证码长度
   */
  private Integer charLength;
}
